package com.ruoyi.project.student.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.student.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.project.student.domain.Class;

import java.util.List;

@RestController
@RequestMapping("/Class/Class")
public class ClassController extends BaseController {
    @Autowired
    private ClassService classService;
    /**
     * 查询班级
     */
    @GetMapping("/list")
    public TableDataInfo list(Class classes)
    {
        List<Class> list = classService.selectClass(classes);
        return getDataTable(list);
    }
}
